#!/usr/bin/env zsh

local return_code="%(?..%{$reset_color%}%{$terminfo[bold]:%{$fg[red]%}%?↵ %{$reset_color%})"

PROMPT_SUCCESS_COLOR=$FG[117]
PROMPT_FAILURE_COLOR=$FG[124]
PROMPT_VCS_INFO_COLOR=$FG[242]
PROMPT_PROMPT=$FG[077]
GIT_DIRTY_COLOR=$FG[133]
GIT_CLEAN_COLOR=$FG[118]
GIT_PROMPT_INFO=%{$fg[black]%} 	#$FG[012]


PROMPT='\
╭─%{$terminfo[bold]$fg[red]%}%# %{$fg[blue]%}%!\
$return_code%{$reset_color%} \
%(#,%{$bg[yellow]%}%{$fg[black]%}%n%{$reset_color%},%{$fg[cyan]%}%n) \
%{$fg[white]%}@ \
%{$fg[green]%}%m \
%{$fg[white]%}in \
%{$terminfo[bold]$fg[yellow]%}%~%{$reset_color%}\
%{$GIT_PROMPT_INFO%}$(git_prompt_info)\
$(virtualenv_prompt_info)\
%{$GIT_DIRTY_COLOR%}$(git_prompt_status) \
%{$reset_color%}%{$PROMPT_PROMPT%}\
%{$reset_color%}[%*]
╰─%{$terminfo[bold]$fg[red]%}➤ %{$fg[blue]%}%i%{$reset_color%} '

ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%} on %{$fg[red]%}%{$bg[yellow]%}[%{$GIT_PROMPT_INFO%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[red]%}]%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"

ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹"
ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭"

ZSH_THEME_VIRTUALENV_PREFIX=" ["
ZSH_THEME_VIRTUALENV_SUFFIX="]"
